<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="EN" lang="EN" dir="ltr">

<%@page import="java.sql.*"%>

<head profile="http://gmpg.org/xfn/11">
<title>Knowledge Share</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="imagetoolbar" content="no" />
<link rel="stylesheet" href="styles/layout.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="scripts/formwizard.css" />
<script type="text/javascript" src="scripts/jquery-1.4.1.min.js"></script>
<script type="text/javascript" language="javascript" src="datetimepicker.js"></script>
<script src="scripts/formwizard.js" type="text/javascript">

/***********************************************
* jQuery Form to Form Wizard- (c) Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/

</script>

<script type="text/javascript">

var myform=new formtowizard({
	formid: 'feedbackform',
	persistsection: true,
	revealfx: ['slide', 500]
})

</script>

</head>
<body id="top">
<div class="wrapper row1">
  <div id="topnav">
     <ul>
      	   <li style="float:right"><a href="logout.jsp"><strong>Log Out</strong></a></li>
    </ul> 
  </div>
</div>
<!-- ####################################################################################################### -->
<div class="wrapper row2">
  <div id="header" class="clear">
    <div class="fl_left">
      <h1><a href="../../Documents/index.html">Knowledge Share </a></h1>
      <p>an online knowledge based community sharing system</p>
    </div>
  </div>
</div>
<!-- ####################################################################################################### -->
<div class="wrapper row4"></div>
<!-- ####################################################################################################### -->
<div class="wrapper row5">
  <div id="container" class="clear" align="center">
     <form id="feedbackform" action="AddUser.do" method="post">

<fieldset class="sectionwrap">
<legend>Basic Information</legend>
<table><tr><td>First Name</td><td> <input name="fname" type="text" size="35" /></td></tr>
       <tr><td>Last Name</td><td> <input name="lname" type="text" size="35" /></td></tr>
	   <tr><td>Date Of Birth</td><td><input type="text" name="dob" id="cdate"><a href="javascript:NewCal('cdate','mmddyyyy')"><img src="cal.gif" width="16" height="16" border="0" alt="Pick a date"></a></td></tr>
	   <tr><td>Sex</td><td> <input type="radio" name="gender" value="male" /> Male <input type="radio" name="sex" value="female" /> Female</td></tr>
	   <tr><td>Department</td><td><select name="department">
	   <%
	   try{
		     Class.forName("com.mysql.jdbc.Driver");
		     Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/kbcssdb", "root", "mysql");
		     Statement stmt = con.createStatement();  
		     ResultSet rs = stmt.executeQuery("Select * from department");
		     while(rs.next())
             {
		    	 %>
                 <option value="<%=rs.getString("deptId")%>"><%=rs.getString("deptName") %></option>
             <%}
	   }catch(Exception e){
		    System.out.println(e);
	     }
	   %>
	   							
			      </select></td></tr>
			      <tr><td>Role</td><td><select name="role"><option value="">--SELECT--</option>
			      <option value="faculty">FACULTY</option>
			      <option value="students">STUDENTS</option>
			      <option value="ie">INDUSTRY EXPERT</option>
			      </select>
	   <tr><td>Phone Number</td><td><input name="phno" type="text" size="35" /></td></tr>
	   <tr><td>Email</td><td><input name="email" type="text" size="35" /></td></tr>
	   <tr><td>Registration No/Employee Id</td><td><input name="regdno" type="text" size="35" /></td></tr>
	   
</table>	   
</fieldset>


<br /><input type="submit" value="SUBMIT" />	   

</form>

    <!-- ####################################################################################################### -->
    
    <!-- ####################################################################################################### -->
  </div>
</div>
<!-- ####################################################################################################### -->
<div class="wrapper"></div>
<!-- ####################################################################################################### -->
<div class="wrapper">
  <div id="footer" class="clear">
    <!-- ####################################################################################################### -->
   
    <div id="copyright" class="clear">
      <p class="fl_left">Copyright &copy; 2012 - All Rights Reserved</p>
      <p class="fl_right">Team CodeX</p>
    </div>
    <!-- ####################################################################################################### -->
  </div>
</div>
</body>
</html>